package cn.wolfcode.luowowo.article.mapper;

import cn.wolfcode.luowowo.article.domain.Destination;
import cn.wolfcode.luowowo.common.query.QueryObject;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface DestinationMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Destination record);

    Destination selectByPrimaryKey(Long id);

    List<Destination> selectAll();

    int updateByPrimaryKey(Destination record);

    List<Destination> selectForList(QueryObject qo);

    void changeHotState(@Param("id") Long id, @Param("hot") Integer hot);
//????什么时候@Param
    List<Destination> selectByRefIds( Long[] refIds);

    List<Destination> selectHotDestByRegionId(@Param("regionId") Long regionId);
}